package com.woniuxueyuan;

public class Main {
    public static void main(String[] args) {
//        Interface anInterface = new Interface() {
//

//            @Override
//            public void show() {
//                Person.testStatic();
//
//            }
//        };
        //lamdba表达式的方式
//         Interface anInterface = () -> Person.testStatic();
        //方法引用::调用静态方法
//        Interface anInterface = Person::testStatic;
//        anInterface.show();
        //方法引用
                Interface anInterface = Person ::setAge;
                Person person =new Person(1001,"tom",22);
                anInterface.show(person,23);
        System.out.println(person);

    }
}
